#!/bin/sh
echo -e "\nunloading scull"
./scull_unload 2>/dev/null
echo -e "\ncleaning binaries"
make clean
echo -e "\nmaking device driver"
make
echo -e "\nmaking test"
make test
echo -e "\nloading scull visit=1"
./scull_load visit=1
./test 1001 1
dmesg | tail -n 4
./scull_unload
echo -e "\nloading scull visit=2 kparole=4"
./scull_load visit=2 kparole=4
./test 1001 2
dmesg | tail -n 5
./scull_unload
echo -e "\nloading scull visit=3 kparole=5"
./scull_load visit=3 kparole=5
./test 1001 3
dmesg | tail -n 6
./scull_unload
echo -e "\nloading scull visit=4 kparole=6"
./scull_load visit=4 kparole=6
./test 1001 4
dmesg | tail -n 7

